# -*- coding: utf-8 -*-
import KBEngine
from KBEDebug import *


class FirstEntity(KBEngine.Entity):
    """
    cell part of FirstEntity
    """
    def __init__(self):
        KBEngine.Entity.__init__(self)
        # nofity client FirstEntity is in
        self.client.onEnter()


    def say(self, callerID, content):
        """
        say method on cell, content is UNICODE
        :param callerID: ID of caller
        :param content: content of say
        """
        INFO_MSG("FirstEntity::say")
        # broadcast
        self.allClients.onSay("Entity: " + str(self.id) + " " + content)
